package com.mt.mtyx.search.repository;

import com.mt.mtyx.entity.search.SkuEs;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

/**
 * @author WMT
 * @Date 2023/7/21 15:56
 */
@Repository
public interface SkuRepository extends ElasticsearchRepository<SkuEs, Long> {

    Page<SkuEs> getByOrderByHotScoreDesc(Pageable pageable);
}
